package com.leps.nq.tx.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.leps.nq.tx.entity.SectionPreset;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel
public class SectionVo {
    @ApiModelProperty("区段ID")
    @TableId(value = "section_id", type = IdType.AUTO)
    private Integer sectionId;

    @ApiModelProperty("区段名称")
    private String sectionName;

    @ApiModelProperty("PLC大类别（防腐/泡排）")
    private String plcType1;

    @ApiModelProperty("序号")
    private Integer sort;

    @ApiModelProperty("是否默认(0=否, 1=是), 单泵默认使用该区段")
    private Boolean isDefault;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("删除标志 (0存在 1删除)")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty("区段预设点位")
    private List<SectionPreset> presets;
}
